import App from './App'
import store from '@/store/index.js'

// #ifndef VUE3
import Vue from 'vue'
import uView from "uview-ui";
import moment from 'moment'
Vue.prototype.$store=store
Vue.config.productionTip = false

Vue.use(uView);
App.mpType = 'app'
const app = new Vue({
	store,
    ...App,
	beforeCreate() {
		Vue.prototype.$bus=this
		Vue.prototype.$moment=moment
	},
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
